package com.starhub.application.rag.service;

import com.starhub.application.rag.dto.EmbeddingDto;

import dev.langchain4j.data.embedding.Embedding;

public interface EmbeddingService {

    /**
     * 对输入内容进行向量化
     * @param vectorModel
     * @param content
     * @return
     * @throws Exception
     */
    public Embedding embedding(String vectorModel, String content) throws Exception;

    /**
     * 向量化
     * @param embeddingDto
     * @throws Exception
     */
    public void embedding(EmbeddingDto embeddingDto) throws Exception;

    
    /**
     * 删除知识条目的向量数据
     * @param embeddingDto 
     * @return 是否删除成功
     */
    public boolean deleteEmbedding(EmbeddingDto embeddingDto);
}
